import request from '@/utils/request'

// 查询费用核算课题列表
export function listKt(query) {
  return request({
    url: '/fyhs/kt/list',
    method: 'get',
    params: query
  })
}

// 查询费用核算课题详细
export function getKt(ktId) {
  return request({
    url: '/fyhs/kt/' + ktId,
    method: 'get'
  })
}

// 新增费用核算课题
export function addKt(data) {
  return request({
    url: '/fyhs/kt',
    method: 'post',
    data: data
  })
}

// 修改费用核算课题
export function updateKt(data) {
  return request({
    url: '/fyhs/kt',
    method: 'put',
    data: data
  })
}

// 删除费用核算课题
export function delKt(ktId) {
  return request({
    url: '/fyhs/kt/' + ktId,
    method: 'delete'
  })
}
